<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../static/css/swiper-bundle.min.css">
    <style>
        .swiper {
            width: 800px;
            height: 600px;
            border: 2px solid red;
            margin: 0 auto;
        }
    </style>
</head>
<body>

<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<div class="swiper">
    <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="https://jmy-pic.baidu.com/0/pic/-1446485451_116616339_1014376691.jpg" alt=""></div>
        <div class="swiper-slide"><img src="https://jmy-pic.baidu.com/0/pic/-113028785_-628613927_1267003081.jpg" alt=""></div>
        <div class="swiper-slide"><img src="https://jmy-pic.baidu.com/0/pic/1103718663_-1384408826_-1335616220.jpg" alt=""></div>
    </div>


    <!-- 如果需要分页器 -->
  <!--  <div class="swiper-pagination"></div>-->

    <!-- 如果需要导航按钮 -->
    <!--<div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>-->

    <!-- 如果需要滚动条 -->
    <!--<div class="swiper-scrollbar"></div>-->
    <!--   <div class="swiper-button-prev"></div>
       <div class="swiper-button-next"></div>&ndash;&gt;&ndash;&gt;-->
    <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>&ndash;&gt;-->


    <script>
        var mySwiper = new Swiper ('.swiper', {
            // direction: 'vertical', // 垂直切换选项
            loop: true, // 循环模式选项

           /* // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            },*/

            // 如果需要前进后退按钮
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },

           /* // 如果需要滚动条
            scrollbar: {
                el: '.swiper-scrollbar',
            },*/
        })
    </script>
</div>
</body>
</html>